/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race Alaskan Native Aleut Koniag</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15711 (C-0-T14914-S14915-S15470-S15690-S15711-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAlaskanNativeAleutKoniag()
 * @model extendedMetaData="name='RaceAlaskanNativeAleutKoniag'"
 * @generated
 */
public enum RaceAlaskanNativeAleutKoniag implements Enumerator {
	/**
	 * The '<em><b>19927</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19927_VALUE
	 * @generated
	 * @ordered
	 */
	_19927(0, "_19927", "1992-7"),

	/**
	 * The '<em><b>19943</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19943_VALUE
	 * @generated
	 * @ordered
	 */
	_19943(1, "_19943", "1994-3"),

	/**
	 * The '<em><b>19935</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19935_VALUE
	 * @generated
	 * @ordered
	 */
	_19935(2, "_19935", "1993-5"),

	/**
	 * The '<em><b>19950</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19950_VALUE
	 * @generated
	 * @ordered
	 */
	_19950(3, "_19950", "1995-0"),

	/**
	 * The '<em><b>19968</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19968_VALUE
	 * @generated
	 * @ordered
	 */
	_19968(4, "_19968", "1996-8"),

	/**
	 * The '<em><b>19976</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19976_VALUE
	 * @generated
	 * @ordered
	 */
	_19976(5, "_19976", "1997-6"),

	/**
	 * The '<em><b>19984</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19984_VALUE
	 * @generated
	 * @ordered
	 */
	_19984(6, "_19984", "1998-4"),

	/**
	 * The '<em><b>19992</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19992_VALUE
	 * @generated
	 * @ordered
	 */
	_19992(7, "_19992", "1999-2"),

	/**
	 * The '<em><b>20008</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20008_VALUE
	 * @generated
	 * @ordered
	 */
	_20008(8, "_20008", "2000-8");

	/**
	 * The '<em><b>19927</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19927</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19927
	 * @model literal="1992-7"
	 * @generated
	 * @ordered
	 */
	public static final int _19927_VALUE = 0;

	/**
	 * The '<em><b>19943</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19943</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19943
	 * @model literal="1994-3"
	 * @generated
	 * @ordered
	 */
	public static final int _19943_VALUE = 1;

	/**
	 * The '<em><b>19935</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19935</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19935
	 * @model literal="1993-5"
	 * @generated
	 * @ordered
	 */
	public static final int _19935_VALUE = 2;

	/**
	 * The '<em><b>19950</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19950</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19950
	 * @model literal="1995-0"
	 * @generated
	 * @ordered
	 */
	public static final int _19950_VALUE = 3;

	/**
	 * The '<em><b>19968</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19968</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19968
	 * @model literal="1996-8"
	 * @generated
	 * @ordered
	 */
	public static final int _19968_VALUE = 4;

	/**
	 * The '<em><b>19976</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19976</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19976
	 * @model literal="1997-6"
	 * @generated
	 * @ordered
	 */
	public static final int _19976_VALUE = 5;

	/**
	 * The '<em><b>19984</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19984</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19984
	 * @model literal="1998-4"
	 * @generated
	 * @ordered
	 */
	public static final int _19984_VALUE = 6;

	/**
	 * The '<em><b>19992</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19992</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19992
	 * @model literal="1999-2"
	 * @generated
	 * @ordered
	 */
	public static final int _19992_VALUE = 7;

	/**
	 * The '<em><b>20008</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20008</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20008
	 * @model literal="2000-8"
	 * @generated
	 * @ordered
	 */
	public static final int _20008_VALUE = 8;

	/**
	 * An array of all the '<em><b>Race Alaskan Native Aleut Koniag</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAlaskanNativeAleutKoniag[] VALUES_ARRAY =
		new RaceAlaskanNativeAleutKoniag[] {
			_19927,
			_19943,
			_19935,
			_19950,
			_19968,
			_19976,
			_19984,
			_19992,
			_20008,
		};

	/**
	 * A public read-only list of all the '<em><b>Race Alaskan Native Aleut Koniag</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAlaskanNativeAleutKoniag> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race Alaskan Native Aleut Koniag</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAlaskanNativeAleutKoniag get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAlaskanNativeAleutKoniag result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race Alaskan Native Aleut Koniag</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAlaskanNativeAleutKoniag getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAlaskanNativeAleutKoniag result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race Alaskan Native Aleut Koniag</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAlaskanNativeAleutKoniag get(int value) {
		switch (value) {
			case _19927_VALUE: return _19927;
			case _19943_VALUE: return _19943;
			case _19935_VALUE: return _19935;
			case _19950_VALUE: return _19950;
			case _19968_VALUE: return _19968;
			case _19976_VALUE: return _19976;
			case _19984_VALUE: return _19984;
			case _19992_VALUE: return _19992;
			case _20008_VALUE: return _20008;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAlaskanNativeAleutKoniag(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAlaskanNativeAleutKoniag
